import Vue from 'vue'
import App from './App'
import iview from 'iview'
// 导入XFormEditor
import XPageEditor from '../src/index'

import { CustomComponents } from './resources'

Vue.use(iview)
Vue.use(XPageEditor)

Vue.component('CustomText', CustomComponents.CustomText);
Vue.component('CustomImage', CustomComponents.CustomImage);
Vue.component('CustomHealthEval', CustomComponents.CustomHealthEval);
Vue.component('CustomForecastReal', CustomComponents.CustomForecastReal);
Vue.component('CustomForecastHistory', CustomComponents.CustomForecastHistory);
Vue.component('CustomMonitorSimilarity', CustomComponents.CustomMonitorSimilarity);
Vue.component('CustomMonitorSurvey', CustomComponents.CustomMonitorSurvey);

Vue.component('CustomThermogram', CustomComponents.CustomThermogram);
// Vue 全局配置
let isDev = process && process.env.NODE_ENV !== 'production'
Vue.config.debug = isDev
Vue.config.devtools = isDev
Vue.config.productionTip = isDev

/* eslint-disable no-new */
// 启动应用
new Vue({
  render: h => h(App)
}).$mount('#app')
